package com.example.pjy.mapper;

import com.example.pjy.pojo.Studentin2;
import com.example.pjy.pojo.Studentin3;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface Studentin3Mapper {


    @Select("select * from studentin3 order by calScore desc")
    List<Studentin3> list();


    //更改该学生的计算成绩
    @Update("update studentin3 set calScore = #{calScore},award=#{award} where studentId=#{studentId}")
    void updatest3(Studentin3 studentin3);
}
